<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Cache-Control" content="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="BK BeeZ">
		<meta name="description" content="LOVE">
		<meta name="keywords" content="LOVE">
		<link rel ="shortcut icon" href="/images/heart.png" type="image/x-icon"/>
		<title>&#9794; &#9829; &#9792;</title>
		<link type="text/css" rel="stylesheet" href="/themes/default/jquery/jquery-ui-1.8.17.custom.css" media="screen"/>
		<link type="text/css" rel="stylesheet" href="/themes/weeraya/theme.css" media="screen"/>
		<link type="text/css" rel="stylesheet" href="/themes/weeraya/dialog.css" media="screen"/>
        <?=$_styles?>
		<script type="text/javascript" src="/scripts/lib/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="/scripts/lib/jquery-ui-1.8.17.custom.min.js"></script> 
		<script type='text/javascript' src='/scripts/weeraya/weeraya.js'></script>
		<?=$_scripts?>
	</head>

	<body <?=(isset($_SESSION["userLogin"]))?"class='weeraya'":"class='weeraya'"?>>

		<!-- [Wapper] -->
		<div id="wapper">
			<!-- [Header] -->
			<div id="header">
<!--				<ul id="analog-clock" class="analog" style="float: left;">	
					<li class="hour"></li>
					<li class="min"></li>
					<li class="sec"></li>
				</ul>     -->
				<div id="inner">
					<div id="logo"><a href="#"><?=(isset($_SESSION["userLogin"]))?"HAPPY VALENTINE DAY JA <span style='font-size:66px;'>&#9829;</span> AOM":"<span style='font-size:66px;'>&#9829;</span> LOVELY"?></a></div>
					<div id="<?=(isset($_SESSION["userLogin"]))?"weeraya":"info"?>">
						<a id="info-user" href="#dialog" name="modal"><?=(isset($_SESSION["userLogin"]))?"Daer Aom":"เข้าระบบ"?></a><br>
						<?=(isset($_SESSION["userLogin"]))?"<a href='/wry/logout'>ออกจากระบบ</a>":"<a href='#'>เกี่ยวกับเรา</a>"?>
					</div>
				</div>
			</div>
			<!-- [End Header] -->

			<!-- [Container] -->
			<div id="container">
				<!-- [Body] -->
				<?=$content?>
				<!-- [End Body] -->
			</div>
			<!-- [End Container] -->

			<!-- [Footer] -->
			<div id="footer" style="<?=(isset($_SESSION["userLogin"]))?"display:none;":"display:block;"?>">
				<a class="left">Copyright @ 2012 BKBEEZ All right reserved.</a>
				<a class="right">Design by BKBEEZ</a>		
			</div>
			<!-- [End Footer] -->
		</div>
		<!-- [End Wapper] -->

		<!-- [Dialog Area] -->
		<? if(!isset($_SESSION["userLogin"])): ?>
			<div id="boxes">
				<div id="dialog" class="window">
					<form id="dialog_form" action="/wry/login" method="post">
						<div class="d-close" title="Close"></div> 
						<div class="d-header">
							<input id="name" type="text" name="name" alt="ชื่อผู้ใช้" title="ชื่อผู้ใช้" value="ชื่อผู้ใช้" onblur="if(this.value=='') this.value='ชื่อผู้ใช้';" onfocus="if(this.value=='ชื่อผู้ใช้') this.value='';" style="font-family: Supermarket; line-height: 14px; height: 20px;"/>
							<input id="keys" type="password" name="keys" alt="รหัสผ่าน" title="รหัสผ่าน" value="รหัสผ่าน" onblur="if(this.value=='') this.value='รหัสผ่าน';" onfocus="if(this.value=='รหัสผ่าน') this.value='';" style="font-family: Supermarket; line-height: 14px; height: 20px;"/> 
						</div>
						<div class="d-blank"></div>
						<div class="d-login"><input type="image" alt="Go" src="/themes/weeraya/images/login-button.png"/></div>
					</form>
				</div>
				<div id="mask"></div>
			</div>
			<? endif; ?>
		<!-- [End Dialog Area] -->
	</body>
</html>
